#encoding:utf-8

class Equips(object):
    '''
    name:   装备名字
    level:  装备等级
    kind:   装备种类(0:武器,1:头盔,2:肩膀,3:衣服,4:裤子,5:鞋子)
    description:  装备描述
    maxhp:  最大生命值
    maxmp:  最大魔力值
    vitality:   体力
    power:      力量
    strength:   强度
    intellect:  智力
    speed:      速度
    atk:        攻击力
    defend:     防御力
    dexterity:  敏捷
    magic:      魔法攻击力
    price:      价钱
    '''
    def __init__(self,kind,name='',level=0,description='',maxhp=0,maxmp=0,vitality=0,power=0,strength=0,
                    intellect=0,speed=0,atk=0,defend=0,dexterity=0,magic=0):
        self.name = name
        self.level = level
        self.kind = kind
        self.description = description
        self.maxhp = maxhp
        self.maxmp = maxmp
        self.vitality = vitality
        self.power = power
        self.strength = strength
        self.intellect = intellect
        self.speed = speed
        self.atk = atk
        self.defend = defend
        self.dexterity = dexterity
        self.magic = magic              
        self.price = self.atk*3 + self.defend*2
    
